package cn.itsource.crm.service.impl;

import cn.itsource.crm.domain.Department;
import cn.itsource.crm.mapper.DepartmentMapper;
import cn.itsource.crm.query.DepartmentQuery;
import cn.itsource.crm.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl extends BaseServiceImpl<Department> implements IDepartmentService {

    @Autowired
    DepartmentMapper departmentMapper;


    /*根据租户公司名查询旗下所有部门*/
    @Override
    public List<Department> getTenantDepartment(Long id) {
        List<Department> list = departmentMapper.getTenantDepartment(id);
        return list;
    }
}
